﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Protocol.OUSProtocol.Model
{
    public class Alarm
    {
        public static Dictionary<int, string> AlarmMap = new Dictionary<int, string>() {
            { 0,"高温报警"},
            { 1,"低温报警"},
            { 2,"超最大温差报警"},
            { 3,"超最小温差报警"},
            { 4,"超最大湿度"},
            { 5,"超最小湿度"},
            { 6,"光照值低"},
            { 7,"氨气浓度高"},
            { 8,"二氧化碳浓度高"},
            { 9,"通风量低"},
            { 10,"掉电"},
            { 11,"温度探头1故障"},
            { 12,"温度探头2故障"},
            { 13,"温度探头3故障"},
            { 14,"湿度探头1故障"},
            { 15,"二氧化碳探头故障"},
            { 16,"氨气探头故障"},
            { 17,"风门超时"},
        };
    }

    public class CAlarm
    {
        public string WarningID { get; set; }
        public string DeviceMac { get; set; }
        public string WarnCategory { get; set; }
        public string Remark { get; set; }
        public string WarnTime { get; set; }
    }
}
